local someTest = someTest or {}

function someTest.xxx()

    -- pp.bt_coin = 13
    -- pp.bt_space = 14
    -- pp.bt_wood = 15
    -- pp.bt_up = 16
    -- pp.bt_down = 17
    -- pp.bt_puzzle = 18

    local bbs = {
        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 0, hard = 2},
        {key = 13, hard = 5},
        {key = 14, hard = 5},
        {key = 15, hard = 11},
        {key = 16, hard = 3},
        {key = 17, hard = 6},
        {key = 18, hard = 8},

        {key = 91, hard = -2},
        {key = 92, hard = -2},
        {key = 93, hard = -2},
        {key = 94, hard = -2},
        {key = 95, hard = -2},
        {key = 96, hard = -2},
        {key = 97, hard = -2},
    }

    local strRet = {}


    local lineCnt = 1000

    for line = 1, lineCnt do
        local ret = {}
        local rethard = 0
        for i = 1,9 do
            local idx = math.random(#bbs)
            ret[#ret+1] = bbs[idx].key
            rethard = rethard + bbs[idx].hard
        end

        inner = {}
        inner[#inner+1] = "{"
        for i = 1, 9 do
            inner[#inner+1] = ret[i]..","
        end
        inner[#inner+1] = "}     "..rethard.."\n"
        local innerstring = table.concat(inner)

        strRet[#strRet+1] = innerstring
    end





    local totalstr = table.concat(strRet)

    local file = io.open("bb_1000.lua", "a")
    file:close()


    file = io.open("bb_1000.lua", "w")
    file:write(totalstr)
    file:close()

end

return someTest